<?php
$query= _update('task_plan_detail',$_POST,'id_tp_detail="'.$_GET['id'].'"');
if($query){
    $_SESSION['success']='Task plan has updated successfully';
}else{
    $_SESSION['failed']='Failed to update Task plan';
}        
redirect('index.php?page=task_plan/tp-view');
?>
